Login     Sign up
don't show message that profile is private to admin
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

file: includes\libs\pages.inc.php

function settabmenu

old code

[code]
if ($owner['profile_permission'] == 2 && !$owner['is_friend']) {
[/code]

new code
[code]
if ($owner['profile_permission'] == 2 && !$owner['is_friend'] && !allow_access(3)) {
[/code]

that is all folks !!!

[i]edit: changed title to more correct one[/i]

[i]edit2: removed a ![/i]

173 months ago
Harry Khizna (@harry)
Join date: Nov 16th 2010
Community posts: 14
View Profile
Send Message

whats the benefit of this new code?

173 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

if a user set his profile privacy settings to only friends can view my profile and comment on my wall, the admin can see the profile anyway.

[b]update: ignore line above[/b]

use of code: hides message "only friends can view this profile" for admin

the code for hiding the profile for people that are not friends and not admin you find here [url]http://community.jcow.net/forums/viewthread/993[/url]

173 months ago
Harry Khizna (@harry)
Join date: Nov 16th 2010
Community posts: 14
View Profile
Send Message

okkkkkkkk good function

173 months ago
john mor (@johninhell)
Join date: Oct 15th 2010
Community posts: 159
View Profile
Send Message

[quote=falcone]file: includes\libs\pages.inc.php

function settabmenu

old code

[code]
if ($owner['profile_permission'] == 2 && !$owner['is_friend']) {
[/code]

new code
[code]
if ($owner['profile_permission'] == 2 && !$owner['is_friend'] && !!allow_access(3)) {
[/code]

that is all folks !!! [/quote]

thnxc bro :)

but .. one more .. Q i think..

in jcow 4.2 version:-
when we set our privacy to ..only my friends can view my profile..

it not working :|...

waiting 4 the sol as sooon as possible :)

173 months ago
john mor (@johninhell)
Join date: Oct 15th 2010
Community posts: 159
View Profile
Send Message

wrong buddy ..!!

if u set this...

not only admin .. everyone.. can view that profile :)

plz hav a look again n cheak :) waiting ..!!

173 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

my code is working, it is the original code that is not working. Off course i have a solution for that. I'm the Jcow Master, remember ;).

May the Force of Jcow be with you !!!

173 months ago
john mor (@johninhell)
Join date: Oct 15th 2010
Community posts: 159
View Profile
Send Message

still

not working bro :(

173 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

now it should work. to avoid confusion, i edited some postings above this one and also made a new thread.

173 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

Awesome mate cheers for this .... Oh ok these two mods work mint but I have set user to only let friends view and write on wall but when I checked A non friend can still write on users wall any ideas...

173 months ago
chicosandro2004 (@chicosandro2004)
Join date: Jul 13th 2010
Community posts: 45
View Profile
Send Message

ERROR, please help, I attach some pictures with the changes and does not work

[URL=http://www.subirimagenes.com/imagen-erroru-5527991.html][IMG]http://s3.subirimagenes.com:81/imagen/previo/thump_5527991erroru.gif[/IMG][/URL]
http://s3.subirimagenes.com:81/imagen/5527991erroru.gif

[URL=http://www.subirimagenes.com/imagen-errorpages-5527990.html][IMG]http://s2.subirimagenes.com/imagen/previo/thump_5527990errorpages.gif[/IMG][/URL]
http://s2.subirimagenes.com/imagen/5527990errorpages.gif

Please review and advise ...

I am working with version 4.2.1 in a test directory to not spoil my current network

173 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

finding it hard to see those screen shots mate but it looks like you have code in wrong place I could be wrong but like I say It's hard to see bigger clearer screens our just code thanks...

173 months ago
1 2 Next